package com.youzhi.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 雇员表
 * </p>
 *
 * @author xumeng
 * @since 2022-11-18
 */
@Data
@ApiModel(value = "User对象", description = "雇员表")
@FieldNameConstants
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("员工名称")
    private String name;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("性别 1男 2女")
    private Integer sex;

    @ApiModelProperty("用户密码")
    private String password;

    @ApiModelProperty("部门id")
    private Long organizationId;

    @ApiModelProperty("是否删除 0未删除 1删除")
    private Integer isDeleted;

    @ApiModelProperty("创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


}
